<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景重复</title>
  <style>
    body {
      /*水平方向重复 (background-repeat: repeat-x;)*/
      background-image: url("CSS/2.jpg");
      /*background-repeat: repeat-y;!*垂直重复*!*/
      /*background-repeat 属性还可指定只显示一次背景图像*/
      background-repeat: no-repeat;
      /*background-position 属性用于指定背景图像的位置*/
      background-position: right top;
    }
  </style>
</head>
<body>

</body>
</html>